package cn.kgc.vue.service.impl;
import cn.kgc.vue.mapper.LogInfoMapper;
import cn.kgc.vue.service.TimeTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/***
 *@title ScheduledServiceImpl
 *@author 韩旭
 *@version 1.0.0
 *@create 2023/8/22 8:45
 **/
@Service
public class TimeTaskServiceImpl implements TimeTaskService {
    @Autowired
    private LogInfoMapper logInfoMapper;
    @Override
    @Scheduled(cron = "0 0 0 1 * ?")
    public void deleLog() {
        logInfoMapper.deleTask();
    }
}
